from easycore.common.registry import Registry

PREPROCESS_REGISTRY = Registry("preprocess")

def preprocess_with_params(image, preprocess_method:str, params:dict={}):
    image = PREPROCESS_REGISTRY.get(preprocess_method)(image, params=params)
    return image    
